package org.jeecg.modules.product.risk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.product.risk.entity.TbBaseControlMeasures;
import org.jeecg.modules.product.risk.entity.TbBaseRiskEvents;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 安全风险事件信息
 * @Author: jeecg-boot
 * @Date:   2024-03-02
 * @Version: V1.0
 */
public interface ITbBaseRiskEventsService extends IService<TbBaseRiskEvents> {

	/**
	 * 添加一对多
	 *
	 * @param tbBaseRiskEvents
	 * @param tbBaseControlMeasuresList
	 */
	public void saveMain(TbBaseRiskEvents tbBaseRiskEvents,List<TbBaseControlMeasures> tbBaseControlMeasuresList) ;
	
	/**
	 * 修改一对多
	 *
   * @param tbBaseRiskEvents
   * @param tbBaseControlMeasuresList
	 */
	public void updateMain(TbBaseRiskEvents tbBaseRiskEvents,List<TbBaseControlMeasures> tbBaseControlMeasuresList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
